package com.allwees.bs.module.oms.entity;

import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.math.BigDecimal;

/**
 * 结算单基类
 *
 * @author yangylsky
 * @since 2019-12-31
 *
 */
@Data
@ToString
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public abstract class FmsBaseSettleStatement extends BaseEntity {
	/**
	 * 编号
	 */
	@Column(length = 32)
	private String no;

	private String orderNo;

	private String orderItemUuid;

	private String orderUuid;

	/**
	 * 金额
	 */
	@Column(precision = 10, scale = 2)
	private BigDecimal amount;

	@Column(length = 4)
	private String currency;
}
